﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    [MetadataType(typeof(Sys_Users_Logs_Metadata))]
    [DisplayName("用户日志")]
    public partial class Sys_Users_Logs
    {
        public Sys_Users_Logs()
        {
            Id = Guid.NewGuid();
            AddDate = DateTime.Now;
            IP = System.Web.HttpContext.Current.Request.UserHostAddress;
        }

        public class Sys_Users_Logs_Metadata
        {
            [ScaffoldColumn(false)]
            public Guid Id { get; set; }

            [DisplayName("日期")]
            public DateTime AddDate { get; set; }

            [DisplayName("内容")]
            public string Content { get; set; }

            [DisplayName("IP")]
            public string IP { get; set; }
        }
    }
}
